package com.jiatuxueyuan.mybatisdao;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

@SpringBootApplication
//下面这个@MapperScan和spring data jpa一样的，都是告知去哪里寻找dao对象，然后给这些dao对象proxy一下
@MapperScan(value = {"com.jiatuxueyuan.mybatisdao.mapper"})
public class MybatisdaoApplication {

    public static void main(String[] args) {
        SpringApplication.run(MybatisdaoApplication.class, args);
    }

}
